<template>
  <div class="homepage">
    <van-tabbar route>
        <van-tabbar-item replace to="/strategy" icon="home-o">策略</van-tabbar-item>
        <van-tabbar-item replace to="/stock" icon="search">股票</van-tabbar-item>
        <van-tabbar-item replace to="/backtest" icon="friends-o">回测</van-tabbar-item>
        <van-tabbar-item replace to="/setting" icon="setting-o">管理</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      goods: {},
    };
  },

  methods: {
    formatPrice() {
      return '¥' + (this.goods.price / 100).toFixed(2);
    },

    onClickCart() {
      this.$router.push('cart');
    },

    sorry() {
      Toast('暂无后续逻辑~');
    },
  },
   mounted:function(){
       this.$router.push('strategy');
    }
};
</script>

